package kr.co.doriclassic.pro22;

import java.util.HashSet;
import java.util.Set;

public class Lotto {
	public static void main(String[] args) {
		
		Set<Integer> num = new HashSet<>();
		int rnd;
		while(num.size()<6){
			rnd = (int)(Math.random()*45+1);
			
			if(num.contains(rnd)==false){
				num.add(rnd);
			}
		
		}
		System.out.println(num);		
	}	
}
